package com.web.hawaste.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.web.hawaste.entity.Examine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.hawaste.domain.ExamineDo;
import org.apache.ibatis.annotations.Select;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Suzy
 * @since 2022-09-26
 */
public interface ExamineMapper extends BaseMapper<Examine> {

    @Select("SELECT  " +
            "     ex.*, " +
            "     su.name user_name, " +
            "     so.name office_name " +
            "FROM  " +
            "    examine ex, " +
            "    sys_user su, " +
            "    sys_office so ${ew.customSqlSegment}")
    IPage<ExamineDo> selectByCondition(IPage<ExamineDo> page, Wrapper ew);
}
